home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / kwmv.arc / KWMV.DOC < prev    next >
Text File  |  1985-08-09  |  621b  |  29 lines

  1. This is the source of some tools I developed using the Aztec C system
  2. on the IBM-PC.  You will need the Aztec compiler to compile them as is,
  3. but they can probably be modified to suit another compiler.
  4.  
  5. The programs mv.com and rm.com both use a different version of the
  6. 'pre-main' startup routine Croot than the one in the standard library.
  7. The new Croot expands all ambiguous file names into all matching file names.
  8. so a program like
  9.  
  10. main(argc,argv)
  11.     char *argv[];
  12. {
  13.     while (--argc)
  14.         puts(*(++argv));
  15. }
  16.  
  17. will behave like this:
  18.  
  19. echo *.*
  20. foo
  21. bar
  22. joe
  23.  
  24. rather than:
  25. echo *.*
  26. *.*
  27.  
  28. Clever, No?
  29.